
<?php
$DocRoot = $_SERVER['DOCUMENT_ROOT'];
include_once "$DocRoot/woflow/model/entity.php";
class OrgUser extends Entity
{
	public function __construct($bReadOnly=false)
	{
		parent::__construct("org_users", "emailID", $bReadOnly=false);
	}
	public function getEmailID()
	{
		return $this->emailID;

	}
	public function setEmailID($emailID)
	{
		$this->emailID = $emailID;

	}
	public function getName()
	{
		return $this->name;

	}
	public function setName($name)
	{
		$this->name = $name;

	}
	public function getPassword()
	{
		return $this->password;

	}
	public function setPassword($password)
	{
		$this->password = $password;

	}
	public function toJSON()
	{
		return json_decode(
			array(
				"emailID" => $this->emailID,
				"name" => $this->name,
				"password" => $this->password
			)
		);

	}

	private $emailID;
	private $name;
	private $password;
}
?>
